/**
 * Created by zzy on 2017/10/12.
 */
import React, {Component} from 'react';
import {
    Text,
    View,
    TouchableOpacity,
    Image,
    Dimensions,
    FlatList,
} from 'react-native';
import JudgeItemCell from '../componentluo/judgeitemcell'
import Constant from '../../js/Contant'
import waterTiketStore from '../../js/store/WaterTiketStore'

export default class CommentList extends Component{
    static navigationOptions = {
        title: '评论'
    };
    constructor(props) {
        super(props);
        this.state = {
            loading: false,
        };
        this.pageNum=0;
        this.Size=10;
        this.commonModels=this.props.navigation.state.params.commonModels;
    }
    render(){
        return <View style={{flex: 1, backgroundColor: Constant.GRAYBGCOLOR}}>
            <FlatList
                onRefresh={this._onRefresh.bind(this)}
                refreshing={this.state.loading}
                onEndReachedThreshold={0.1}
                onEndReached={this._onEndReached.bind(this)}
                data={this.commonModels}
                keyExtractor={(item,index) => index}
                renderItem={({item}) => <JudgeItemCell common={item}/>}
            />
            </View>
    }
    _onRefresh(){

    }
    _onEndReached(){

    }
}